package lu.med.praxiswahl.wahlumed.client.arztbriefe;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

/**
 * 
 * @author Lars Holger Roth
 */
public class AbActionListener implements ActionListener
{
    private ArztbriefPanel o;

    public AbActionListener(ArztbriefPanel owner)
    {
	o = owner;
    }

    public void actionPerformed(ActionEvent e)
    {
	if (e.getActionCommand().equals("Neu"))
	{
	    o.clearExtraView();
	}
	else if (e.getActionCommand().equals("Drucken"))
	{
	    o.printExtraView();
	}
	else if (e.getActionCommand().equals("Speichern"))
	{
	    o.saveExtraView();
	}
    }

}
